//
//  CollectionViewCell.swift
//  MoyoungCommon
//
//  Created by 李然 on 2022/7/19.
//

import UIKit
import RxSwift

open class CollectionViewCell: UICollectionViewCell {
    
    public var disposeBag = DisposeBag()
    
    open override func prepareForReuse() {
        super.prepareForReuse()
        disposeBag = DisposeBag()
    }
    
    public override init(frame: CGRect) {
        super.init(frame: frame)
        
        makeUI()
    }
    
    required public init?(coder: NSCoder) {
        fatalError("init(coder:) has not been implemented")
    }
    
    open func makeUI() {
        self.layer.masksToBounds = true
        updateUI()
    }

    open func updateUI() {
        setNeedsDisplay()
    }
}
